package com.mouliu.base.concurrent17;

import java.util.concurrent.RejectedExecutionHandler;
import java.util.concurrent.ThreadPoolExecutor;

/**
 * @author mouliu
 * @create 2018-04-15-上午12:33
 */
public class MyRejected implements RejectedExecutionHandler{
    public MyRejected(){

    }
    @Override
    public void rejectedExecution(Runnable r, ThreadPoolExecutor executor) {
        System.out.println("自定义处理");
        System.out.println("当前线程被拒任务为:"+r.toString());
    }
}
